<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="bean.client.Client" %>
<%@ page import="service.template.admin.AffichageComptes" %>
<jsp:useBean id="dossierImages" scope="session" class="java.lang.String" />
<jsp:useBean id="listClients" scope="request" class="java.util.ArrayList" />
<jsp:useBean id="typeCompte" scope="request" class="java.lang.String" />
<jsp:useBean id="mail" scope="request" class="java.lang.String" />
<jsp:useBean id="nomPrenom" scope="request" class="java.lang.String" />
<jsp:useBean id="bloque" scope="request" class="java.lang.String" />
<jsp:useBean id="min" scope="request" class="java.lang.String" />

<%@ page import="service.template.*" %>
	<%
		String lien = "";
			if ( typeCompte.equals("clients") )
		lien = "AdminGestionCompteClientAction.do";	
			else
		lien = "AdminGestionCompteServiceAction.do";
	%>

	<jsp:include page="../WEB-INF/Chartre/head.jsp"/>
	
	<body>

	<jsp:include page="../WEB-INF/Chartre/entete.jsp"/>
		
	<jsp:include page="../WEB-INF/Chartre/menuAdmin.jsp"/>
		
		<div id='content'>
			<div id='navigation'>
					<a href='AdminRedirectionMenuAction.do'>Accueil Administration</a>
					<img src="./images/arrow.gif" /> 
					<a href='<%=lien%>'>Gestion des comptes <%=typeCompte%></a>
			</div>
			<div id='contenu'>
				
				<%
				System.out.println(typeCompte);
				AffichageComptes.afficheComptes(out, listClients, typeCompte, mail, nomPrenom, min, bloque);
				%>
				
			</div>
		</div>

	<jsp:include page="../WEB-INF/Chartre/footer.jsp"/>
		
	</body>


</html>